﻿#include "FBGameData.h"

const QList<DifficultyMode>& FBGameData::getDifficultyModes(int type)
{
    if (type == 0)
    {
        static QList<DifficultyMode> modes = {
            {"普通1", 1}, {"普通2", 2}, {"困难1", 3}, {"困难2", 4},
            {"噩梦1", 5}, {"噩梦2", 6}, {"专家1", 7}, {"专家2", 8},
            {"大师1", 9}, {"大师2", 10}
        };
        return modes;
    }
    else {
        static QList<DifficultyMode> modes = {
            {"无", 1}
        };
        return modes;
    }
}

const QList<ZXLevel>& FBGameData::getLevels()
{
    static QList<ZXLevel> levels = initializeLevels();
    return levels;
}

QList<ZXLevel> FBGameData::initializeLevels()
{
    static QStringList levelNames;
    levelNames.append("锈蚀狂潮");

    static QList<ZXLevel> levels;
    for (QString name : levelNames) {
        levels.append({name, getDifficultyModes(0)});
    }

    return levels;
}
